package com.hitales.liteflow.liteflowdemo.booleandemo;

import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LiteflowBooleanTestService {
    @Autowired
    private FlowExecutor flowExecutor;

    public void test() {
        CustomContext context = new CustomContext();
        context.setAge(20);

        LiteflowResponse response = flowExecutor.execute2Resp("booleandemo", "请求参数", CustomContext.class, context);
        System.out.println("执行是否成功: " + response.isSuccess());
    }
}
